package com.pro.entity;


import lombok.*;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.List;

/**
 * @ClassName JsMenu
 * @Author 谭金诚
 * @Date 2021/11/25
 */
@Data
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class JsMenu {

  private Integer menuId;//目录id
  private String menuName;//目录名称
  private String url;//目录地址
  private String icon;//目录图标
  private Integer parentId;//父级目录id
  private String remark;//备注
  private String deptType;//目录类型，0通用，1人事，2，教师，3，运营
  private List<JsMenu> children;
  //获取本机ip地址
  private String lastLocalHost;
  {
    try {
      lastLocalHost = InetAddress.getLocalHost().getHostAddress();
    } catch (UnknownHostException e) {
      e.printStackTrace();
    }
  }

}
